// example routes
/*
 get "/blog/@year/@month/@day/@title", forward: "/WEB-INF/groovy/blog.groovy?year=@year&month=@month&day=@day&title=@title"
 get "/something", redirect: "/blog/2008/10/20/something", cache: 2.hours
 get "/book/isbn/@isbn", forward: "/WEB-INF/groovy/book.groovy?isbn=@isbn", validate: { isbn ==~ /\d{9}(\d|X)/ }
 */

// routes for the blobstore service example
//get "/upload",  forward: "/upload.gtpl"
//get "/success", forward: "/success.gtpl"
//get "/failure", forward: "/failure.gtpl"
get "/catalog/@action/@orderBy", forward: "/catalog.groovy?action=@action&orderBy=@orderBy"
get "/catalog/@action", forward: "/catalog.groovy?action=@action"
get "/catalog", forward: "/catalog.groovy"

// download, show a script
post "/script/rateit/@id/@rating", forward: "/script.groovy?action=rateit&id=@id&rating=@rating"
post "/script/rate/@id/@rating", forward: "/script.groovy?action=rate&id=@id&rating=@rating"
get "/script/@action/@id", forward: "/script.groovy?action=@action&id=@id"
get "/sec/script/@action/@id", forward: "/script.groovy?action=@action&id=@id"
get "/sec/script/new", forward: "/script.groovy?action=new"
post "/sec/script/@action", forward: "/script.groovy?action=@action"
all "/sec/provider/@action/@id", forward: "/provider.groovy?action=@action&id=@id"
all "/sec/provider/@action", forward: "/provider.groovy?action=@action"
all "/provider/list/@orderBy", forward: "/provider.groovy?action=list&orderBy=@orderBy"
all "/provider/@action/@id", forward: "/provider.groovy?action=@action&id=@id"
all "/provider/@action", forward: "/provider.groovy?action=@action"
all "/about", forward: "/about.gtpl"

